package com.dreem.flyweight;

/**
 * @program: DesignParrtern
 * @description: 网站的具体实现类
 * @author: Peng
 * @create: 2021-02-24  19:17
 **/
public class ConcreteWebSite extends WebSite {

    public ConcreteWebSite(String type){
        super(type);
    }

    @Override
    public void use(User user) {
        System.out.println("该网站的信息方式为：" + this.getType() + user.getName());
    }


}
